/**
 * 
 */

/**
 * This class represent a number, and extends abstract class CalcToken.
 * @author Michael Fildestine ID:309161594
 *
 */
public class ValueToken extends CalcToken {
	//Fields
	private double val;
	
	//Methods
	
/**
 * Builder that initiates the token value.	
 * @param val
 */
	
	public ValueToken (double val){
		this.val = val;
	}
	
/**
 * 	
 * @return token value.
 */
	
	public double getValue(){
		return this.val;
	}

/**
 *@return String of the value. 
 */
	public String toString(){
		String ans;
		ans = Double.toString(val); //check if it's okey to use this.
		return ans;
		
		
	}
	

}
